﻿namespace AnyTap.Models;

/// <summary>
/// 测试档案
/// </summary>
public sealed class Doc
{
	#region 属性
	/// <inheritdoc/>
	public DateTime StartTime { get; private set; }

	/// <summary>
	/// 测试完成标志
	/// </summary>
	public bool IsFinished { get; private set; }

	/// <summary>
	/// 循环次数
	/// </summary>
	public int CycleCount { get; set; } = 1;

	/// <summary>
	/// 循环间隔
	/// </summary>
	public int CycleInterval { get; set; } = 1000;

	/// <summary>
	/// 测试项
	/// </summary>
	public List<TapGesture> Items { get; set; }
	#endregion

	/// <summary>
	/// 重置数据
	/// </summary>
	public void Reset()
	{
		IsFinished = false;
		StartTime = DateTime.Now;
	}

	/// <summary>
	/// 测试完成后的操作,判定结论等
	/// </summary>
	public void Finish()
	{
		IsFinished = true;
	}
}
